<?php
   class UploadFileUtils{
    	public static function getFileList($path){
    		$fileList=array();
			$handler=opendir($path);
			$fileName='';
			do{
				$fileName=readdir($handler);

				if($fileName!='.'&&$fileName!='..'&&$fileName!=false){
					$fileList[]=$fileName;
				}
			}while($fileName!==false);
			closedir($handler);
			return $fileList;
    	}

    }
?>